package singlelinkedlist;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-12-19
 * Time: 11:43
 */
public class Main {

    public static void main(String[] args) {
        SingleLinkedList myList = new SingleLinkedList();
        myList.addFirst(1);
        myList.addFirst(2);
        myList.addFirst(3);
        myList.addFirst(4);
        myList.display();
        myList.remove(4);
        myList.display();
        myList.addLast(4);
        myList.display();

    }


}
